package com.asset.dispoal.nature.service.converter;


import com.asset.dispoal.nature.domain.db.entity.GbNature;
import com.asset.dispoal.nature.dto.requset.GbNatureRequest;
import com.asset.dispoal.nature.dto.response.GbNatureResponse;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author qr
 * @date 2022/2/25$
 */
@Mapper
public interface GbNatureConverter {

    GbNatureConverter INSTANCE = Mappers.getMapper(GbNatureConverter.class);


    GbNature reqToDo(GbNatureRequest request);

    GbNatureResponse doToRes(GbNatureRequest request);

    List<GbNatureResponse> dosToRes(List<GbNature> gbNatures);
}
